package com.WISSC.service;

import com.WISSC.bean.*;
import com.WISSC.bean.layuiBean.ResultPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学员信息 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-05
 */
public interface StudentService extends IService<Student>{


    /**
     * @param page
     * @param limit
     * @param name
     * @param idNumber
     * @param regTime
     * @param city
     * @param subject
     * @param subjectLevel
     * @return 查询  + 分页
     */
    ResultPage<Student> selectMyPage(int page, int limit, String name, String idNumber,
                                     Long regTime, String city, Integer subject, Integer subjectLevel,boolean admin);

    /**
     * @param student
     * @param pIds
     * @return  学员信息添加
     * @throws SQLException
     */
    String studentInsert(Student student,String[] pIds,String param2);

    boolean login(Student student, StudentImage studentImage, HttpSession session);


    Student certificate(String idNumber);

    Map getTeamCity(Long id);

    Student countPerson();
    /**
     * @param student
     * @return 学员信息编辑
     */
    Map updateStudent(Student student,String param2);

    List<Student> getManyUrl(Map map);

    Integer getCount(String idNumber,String idNo);

    List<Student> getStudentCount(String idNumber,String idNo);

    //关联表删除
    Integer deleteByIdStudent(Long id);
}
